<template>
  <header class="header">
    <div class="header-left">
      <div class="header-logo">
        <router-link to="/">
          <img src="../assets/image/logo.png" alt="">
        </router-link>
      </div>
      <ul class="header-nav">
        <li class="header-item">
          <router-link to="/">
            购买算力
          </router-link>
        </li>
      </ul>
    </div>
    <div class="header-right">
      <router-link to="/webPage/login">
        <button class="login-btn btn">登录</button>
      </router-link>
      <button class="reg-btn btn">注册</button>
    </div>
  </header>
</template>

<script>
export default {
  name: 'Header'
}
</script>

<style lang="scss" scoped>
.header{
  font-size: 14px;
  user-select: none;
  height: 60px;
  width: 100%;
  padding-left: 20px;
  box-sizing: border-box;
  border-bottom-width: 1px;
  border-bottom-style: solid;
  position: relative;
  z-index: 11;
  color: rgba(150,148,144,1);
  border-color: rgba(33,33,33,1);
  background-color: rgba(3,2,4,1);
  display: flex;
  justify-content: space-between;
  .header-left{
    display: flex;
    .header-logo{
      height: 60px;
      padding: 0 12px;
      line-height: 58px;
      img{
        max-height: 50px;
        max-width: 160px;
        vertical-align: middle;
      }
    }
    .header-nav{
      margin: 0;
      padding: 0;
      list-style: none;
      .header-item{
        line-height: 60px;
        float: left;
        margin-right: 25px;
        cursor: pointer;
        transition: all .3s;
        position: relative;
        &:hover{
          color: rgb(243, 152, 0);
        }
      }
    }
  }

  .header-right{
    float: left;
    padding: 15px 20px;
    vertical-align: middle;
    border-left-width: 1px;
    border-left-style: solid;
    .btn{
      font-size: 14px!important;
      margin-right: 16px;
      padding: 0 22px;
      height: 30px;
      border-radius: 2px;
      border-width: 1px;
      border-style: solid;
      background: transparent;
      color: #999999;
      cursor: pointer;
    }
    .login-btn{
      background: transparent;
      border: none;
      &:hover{
        background: rgba(153, 153, 153, 0.3);
      }
    }
    .reg-btn{
      border-color: #F39800;
      &:hover{
        color:  #F39800;
      }
    }
  }

}
</style>
